﻿<Application 
    x:Class="NodeGardenSl.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:mec="clr-namespace:Microsoft.Expression.Controls;assembly=Microsoft.Expression.Controls"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:el="clr-namespace:Microsoft.Expression.Interactivity.Layout;assembly=Microsoft.Expression.Interactions"  
    xmlns:local="clr-namespace:NodeGardenSl">

    <!--Application Resources-->
    <Application.Resources>
        <local:SliderValueRounder x:Key="SliderValueRounder" />
        <DataTemplate x:Key="DataTemplateMessages">
            <Grid>
                <TextBlock Text="{Binding Name}" Foreground="{Binding TextBrush}" />
            </Grid>

        </DataTemplate>
        <ItemsPanelTemplate x:Key="ItemsPanelTemplateMessages">
            <mec:PathPanel>
                <i:Interaction.Behaviors>
                    <!--<el:FluidMoveBehavior AppliesTo="Children"/>-->
                    <el:FluidMoveBehavior Duration=" 00:00:00.9000000" AppliesTo="Children"/>
                </i:Interaction.Behaviors>
            </mec:PathPanel>
        </ItemsPanelTemplate>
    </Application.Resources>

    <Application.ApplicationLifetimeObjects>
        <!--Required object that handles lifetime events for the application-->
        <shell:PhoneApplicationService 
            Launching="Application_Launching" Closing="Application_Closing" 
            Activated="Application_Activated" Deactivated="Application_Deactivated"/>
    </Application.ApplicationLifetimeObjects>

</Application>